require([
        "dijit/registry",
        "dijit/layout/BorderContainer",
        "dijit/layout/TabContainer",
        "dijit/layout/ContentPane",
        "dijit/TitlePane",
        "dijit/Menu",
        "dijit/MenuItem",
        "dijit/MenuBar",
        "dijit/DropDownMenu",
        "dijit/PopupMenuBarItem",
        "dijit/MenuSeparator",
        "dijit/layout/AccordionContainer",
        "dojo/dom",
        "dojo/domReady!"],
    function (registry,
              BorderContainer,
              TabContainer,
              ContentPane,
              TitlePane,
              Menu,
              MenuItem,
              MenuBar,
              DropDownMenu,
              PopupMenuBarItem,
              MenuSeparator,
              AccordionContainer) {
        var appLayout = new BorderContainer({
            design: "headline"
        }, "appLayout");

        var contentTabs = new TabContainer({
                region: "center",
                id: "contentTabs",
                tabPosition: "top",
                class: "centerPanel"
            }),
            appTop = new ContentPane({
                region: "top",
                class: "edgePanel",
                style: "padding: 0px;"
            }),
            appLeft = new ContentPane({
                region: "left",
                id: "leftCol",
                class: "edgePanel",
                style: "padding: 0px;",
                //content: "Sidebar content (left)",
                splitter: true
            });


        appLayout.addChild(contentTabs);
        appLayout.addChild(appTop);
        appLayout.addChild(appLeft);

        var mytitle = new TitlePane({
            title: "基础业务",
            style: "border:0px"
        });
        var menu = new Menu({class: "leftMenuPanel"});
        var i = 1;
        menu.addChild(new MenuItem({
            label: "我的首页", iconClass: "dijitEditorIcon dijitEditorIconCut", onClick: function () {
                var p = undefined;
                contentTabs.addChild((p = new ContentPane({
                    title: "我的首页" + i++,
                    style: "overflow-y:visible;overflow-x:visible;padding:0px;margin:0px",
                    content: "<iframe src='table.html' width='100%' height='100%' frameborder='0'></iframe>",
                    closable: true
                })));
                p && contentTabs.selectChild(p);
            }
        }));
        menu.addChild(new MenuItem({label: "快件跟踪", iconClass: "dijitEditorIcon dijitEditorIconCut"}));
        menu.addChild(new MenuItem({label: "区域查询", iconClass: "dijitEditorIcon dijitEditorIconCut"}));
        mytitle.addChild(menu);

        var mytitle2 = new TitlePane({title: "问题处理", style: "border:0px"});
        var menu2 = new Menu({class: "leftMenuPanel"});
        menu2.addChild(new MenuItem({label: "问题件录入", iconClass: "dijitEditorIcon dijitEditorIconCut"}));
        menu2.addChild(new MenuItem({label: "问题件登记", iconClass: "dijitEditorIcon dijitEditorIconCut"}));
        menu2.addChild(new MenuItem({label: "问题件查询", iconClass: "dijitEditorIcon dijitEditorIconCut"}));
        mytitle2.addChild(menu2);

        var accordionContainer = new AccordionContainer();
        accordionContainer.addChild(new ContentPane({title: "业务导航"}));
        accordionContainer.addChild(new ContentPane({title: "系统导航"}));
        appLeft.addChild(accordionContainer);
        accordionContainer.getChildren()[0].addChild(mytitle);
        accordionContainer.getChildren()[0].addChild(new MenuSeparator());
        accordionContainer.getChildren()[0].addChild(mytitle2);
        contentTabs.addChild(
            new ContentPane({
                title: "我的首页",
                style: "overflow-y:visible;overflow-x:visible;padding:0px;margin:0px",
                content: "<iframe src='table.html' width='100%' height='100%' frameborder='0'></iframe>"
            })
        );
        var foo = new MenuBar({});
        var pSubMenu = new DropDownMenu({});
        pSubMenu.addChild(new MenuItem({
            label: "下载资料"
        }));
        pSubMenu.addChild(new MenuItem({
            label: "更新缓存数据"
        }));
        pSubMenu.addChild(new MenuSeparator());
        pSubMenu.addChild(new MenuItem({
            label: "锁定"
        }));
        pSubMenu.addChild(new MenuItem({
            label: "更改密码"
        }));
        pSubMenu.addChild(new MenuSeparator());
        pSubMenu.addChild(new MenuItem({
            label: "重新登录"
        }));
        pSubMenu.addChild(new MenuItem({
            label: "退出系统"
        }));
        foo.addChild(new PopupMenuBarItem({
            label: "系统",
            popup: pSubMenu
        }));

        var pSubMenu2 = new DropDownMenu({});
        pSubMenu2.addChild(new MenuItem({label: "帮助"}));
        pSubMenu2.addChild(new MenuItem({label: "联机帮助"}));
        pSubMenu2.addChild(new MenuItem({label: "自动化OA"}));
        pSubMenu2.addChild(new MenuItem({label: "公司下载"}));
        pSubMenu2.addChild(new MenuSeparator());
        pSubMenu2.addChild(new MenuItem({label: "关于本系统"}));
        foo.addChild(new PopupMenuBarItem({label: "关于", popup: pSubMenu2}));
        appTop.addChild(foo);
        appLayout.startup();

        loading && loading.endLoading();
    });